package com.monitor.admin.controller;

import com.alibaba.fastjson.JSONObject;
import com.monitor.admin.util.redis.RedisUtil;
import com.monitor.core.bean.MonitorMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Auther: hanhui.liu
 * @Date: 2018/4/26 14:21
 * @Description:
 */
@Controller
@RequestMapping("dashboard")
public class DashboardController {

    @Autowired
    RedisUtil redisUtil;

    @RequestMapping("baseinfo")
    @ResponseBody
    public Object baseInfo() {
        MonitorMessage monitorMessage = new MonitorMessage();
        monitorMessage.setUuid("sdadada");
        redisUtil.set("hello", monitorMessage);
        return null;
    }

}
